package com.cy.dao;

import com.cy.common.pojo.CheckBox;
import com.cy.pojo.SysRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SysRoleDao {
    List<SysRole> selectSysRole(@Param("roleName") String roleName);

    int deleteSysRole(Integer id);

    int updateSysRole(SysRole sysRole);

    int insertSysRole(SysRole sysRole);

    SysRole findByRoleId(Integer id);

    int deleteRelationByRoleId(Integer id);

    @Select("select id,name from sys_roles")
    List<CheckBox> selectCheckRoles();
}
